package com.zdsoft.finance.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zdsoft.framework.core.common.domain.BaseEntity;


/**
 * 文档模板设定
 * @author longwei
 * @date 2016/11/08
 * @version 1.0
 */
@Entity
@Table(name="zf_product_doc_temp")
public class ProductDocTemp extends BaseEntity{

	/**
	 * 模板编号
	 */
	@Column(length=32)
	private String code;
	
	/**
	 * 模板名称
	 */
	@Column(length=255)
	private String name;
	
	/**
	 * 版本号
	 */
	@Column(length=255)
	private String ver;
	
	/**
	 * 状态
	 */
	@Column(columnDefinition="boolean")
	private Boolean status;
	
	/**
	 * 关联附件id
	 */
	@Column(length=32)
	private String attachmentId;
	
	/**
	 * 备注
	 */
	@Lob
	private String remark;
	
	/**
	 * 所属类型
	 */
	@ManyToOne
	@JoinColumn(name="doc_type_id")
	private ProductDocType productDocType;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVer() {
		return ver;
	}

	public void setVer(String ver) {
		this.ver = ver;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public String getAttachmentId() {
		return attachmentId;
	}

	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public ProductDocType getProductDocType() {
		return productDocType;
	}

	public void setProductDocType(ProductDocType productDocType) {
		this.productDocType = productDocType;
	}
	
}
